package com.pig4cloud.pig.module.api.entity.devices;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 设备的视频和图片素材对象 devices_material
 *
 * @author ruoyi
 * @date 2022-01-11
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("devices_material")
public class DevicesMaterial implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 广告所属设备id
     */
    private Long deviceId;

    /**
     * 广告状态 0 - 不可用 1 - 可用
     */
    private Long state;

    /**
     * 视频，图片链接
     */
    private String imgUrl;

    /**
     * 是否是通用
     */
    private Long isCommon;

    /**
     * 添加时间
     */
    @TableField(fill = FieldFill.INSERT)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 文件类型
     */
    private String fileType;

    private String version;

    private Integer sort;

    @TableField(exist = false)
    private String imgPath;

}
